<?php

declare(strict_types=1);

namespace App\CustHub\Request;

use Mine\MineFormRequest;

class CntctDedupRequest extends MineFormRequest
{

    public function startDetectionRules(): array
    {
        return [
            'robot_ids' => 'required'
        ];
    }

    public function getTaskInfoRules(): array
    {
        return [
            'id' => 'required'
        ];
    }

    public function repeatContactListRules(): array
    {
        return [
            'id' => 'required'
        ];
    }

    public function restartDetectionRules(): array
    {
        return [
            'id' => 'required'
        ];
    }

    public function cancelDetectionRules(): array
    {
        return [
            'id' => 'required'
        ];
    }

    public function sortRules(): array
    {
        return [
            'id' => 'required',
            'robot_ids' => 'required'
        ];
    }

    public function deduplicationRules(): array
    {
        return [
            'id' => 'required',
            'type' => 'required|in:0,1,2',
            'contact_data' => 'required_if:type,2'
        ];
    }
}